<template>
    <fieldset>
      <legend>container</legend>
      <button @click="handleClick" >模态框1</button>
      <modal :visible="visible" @close="btnFn">
        <template v-slot:change>
          <h1>修改过的</h1>
        </template>
      </modal>
      <container_two></container_two>
    </fieldset>
</template>
  
<script>
import modal from "../index.vue"
import container_two from "../container_two/index.vue"
export default {
  data(){
    return {
      visible: false
    }
  },
components:{
    modal,
    container_two
},
methods:{
  btnFn(){
    this.visible = false
  },
    
  handleClick(){
    this.visible=true
  }
}
}
</script>

<style>

</style>